#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam1.py
# author:王雯雯
# datetime:2024-11-12 
# software: PyCharm


class Student:
    def __init__(self, name, age, score):

        self.name = name

        self.age = age

        self.score = score

    def get_name(self):
        return self.name

    def get_age(self):

        return self.age

    def get_course(self):

        return max(self.score)


student1 = Student("张三", 20, [80, 90, 70])
student2 = Student("李四", 21, [75, 85, 95])


print(student1.get_name())
print(student1.get_age())
print(student1.get_course())

print(student2.get_name())
print(student2.get_age())
print(student2.get_course())